<%@ page language="java" contentType="text/html; charset=utf-8" %>
<jsp:useBean id="rs" class="weaver.conn.RecordSet" scope="page"/>
<%@ page import="com.alibaba.fastjson.JSONObject" %>
<%@ page import="weaver.general.Util" %>
<%
    JSONObject jsonData = new JSONObject();
    String requestid = Util.null2String( request.getParameter( "requestid" ) );
    rs.executeQuery( "select count(requestid) from workflow_requestbase where currentnodetype='3' and requestid=?", requestid );
    rs.next();
    int count = Util.getIntValue( rs.getString(1) );
    boolean flag = count>0?true:false;
    jsonData.put( "flag", flag );
    out.print( jsonData.toJSONString() );
%>
